package com.wu.common.convertion.errorcode;

public enum ConsumerErrorCode implements IErrorCode {

    CONSUMER_SAVE_ERROR("B000201", "添加用户失败"),
    CONSUMER_DELETE_ERROR("B000202", "删除用户失败"),
    CONSUMER_UPDATE_ERROR("B000203", "修改用户信息失败"),
    CONSUMER_UPDATE_IMAGE_ERROR("B000204", "上传用户照片失败"),
    CONSUMER_PASSWORD_ERROR("A000205", "用户密码错误"),
    CONSUMER_UPDATE_PASSWORD_ERROR("B000206", "用户修改密码错误");
    private final String code;

    private final String message;

    ConsumerErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
